check given number is power of 2